home *** CD-ROM | disk | FTP | other *** search
/ Maximum CD 2001 February / maximum-cd-2001-02.iso / Team Arena / TeamArenaDemo.exe / Main / pak0.pk3 / ui / mod.menu < prev    next >
Encoding:
Text File  |  2000-11-22  |  5.5 KB  |  295 lines

  1. #include "ui/menudef.h"
  2.  
  3. {
  4. \\ MOD \\
  5.  
  6.   menuDef {
  7.         name "mod"
  8.         visible 0
  9.         fullscreen 1
  10.         rect 0 0 640 480
  11.         background "menuback_a"
  12.         focusColor 1 .67 0 1
  13.         style 1
  14.         border 1
  15.     onEsc { close mod ; open main }
  16.     onOpen { setitemcolor fadebox backcolor 0 0 0 1 ;
  17.     playlooped "music/fla_mp03.wav" ;
  18.     fadeout fadebox ; 
  19.     uiScript loadMods }
  20.     
  21.          
  22.  
  23.  
  24.  
  25.  
  26.  
  27. // LEVEL SELECTION BAR    //
  28.  
  29.  
  30.   itemDef {
  31.       name levelbar
  32.     text "TEAM ARENA MODS"
  33.     textstyle 6
  34.       style 2
  35.       rect 0 16 640 40 
  36.       textscale 0.416
  37.       textalign 1                // center
  38.       textalignx 320        // x alignment point for text
  39.                             // use it to offset left/right text from the edge 
  40.                             // or to center the text on a different point
  41.       textaligny 27        
  42.       style 2
  43.       border 4
  44.       bordercolor 0.5 0.5 0.5 0.5
  45.       bordersize 2
  46.       backcolor 0 0 .75 0.5
  47.       visible 1 
  48.       decoration 
  49.     }
  50.  
  51.     itemDef {
  52.           name teamarenaimage
  53.     style 3
  54.     background "ui/assets/teamarenaimage.tga"
  55.     rect 0 80 220 115 
  56.           visible 1 
  57.         }
  58.  
  59.  
  60. itemDef {
  61.     name mappreview
  62.           style 5
  63.     cinematic "mpintro.roq"
  64.     rect 20 195 200 150
  65.     backcolor 1 1 1 .25
  66.     border 1
  67.     bordersize 1
  68.     bordercolor .5 .5 .5 1
  69.     decoration
  70.     visible 1
  71.     }
  72.  
  73.  
  74. //    DEMO ONLY    //
  75. itemDef {
  76.     name demo_only
  77.     style 0 
  78.     rect 240 250 360 20
  79.     textstyle 1
  80.     textalign 1
  81.     textalignx 180
  82.     textaligny 25
  83.     textscale .333
  84.     text "This Option is Not Available in Demo."
  85.     forecolor 1 1 1 1
  86.     decoration 
  87.     visible 1
  88.     }
  89.  
  90. //    COMMENTED OUT FOR DEMO ONLY     //
  91.  
  92. /*
  93.  
  94. itemDef {
  95.     name modlist
  96.           rect 240 100 360 300
  97.     type ITEM_TYPE_LISTBOX
  98.     style WINDOW_STYLE_FILLED
  99.     elementwidth 120
  100.     elementheight 20
  101.     textscale .25
  102.     elementtype LISTBOX_TEXT
  103.     feeder FEEDER_MODS
  104.     textalign 3
  105.     textaligny 14
  106.     border 1
  107.     bordercolor .5 .5 .5 .5
  108.     forecolor 1 1 1 1
  109.     backcolor 0 0 .5 .25
  110.     outlinecolor .1 .1 .7 .5
  111.     visible 1
  112.     mouseEnter { fadein message_mod ; setitemcolor modlist bordercolor .7 0 0 1 } 
  113.     mouseExit { fadeout message_mod ; setitemcolor modlist bordercolor .5 .5 .5 .5 } 
  114.       }
  115. */
  116.  
  117.  
  118.  
  119. // BACK BAR    //
  120.  
  121.  
  122.   itemDef {
  123.       name gotobar
  124.       style 2
  125.       rect 0 430 640 30 
  126.       textscale 0.4
  127.       textalign 0                // center
  128.       textalignx 60        // x alignment point for text
  129.                             // use it to offset left/right text from the edge 
  130.                             // or to center the text on a different point
  131.       textaligny 21        
  132.       style 2
  133.       border 4
  134.       bordercolor 0.5 0.5 0.5 0.5
  135.       bordersize 2
  136.       backcolor 0 0 .75 0.5
  137.       visible 1 
  138.       mouseEnter { setcolor backcolor .75 0 0 .5 }
  139.       mouseExit { setcolor backcolor 0 0 .75 .5 }
  140.       decoration 
  141.         }
  142.  
  143.  
  144.  
  145.     itemDef {
  146.           name back
  147.     style 3
  148.     background "ui/assets/backarrow.tga"
  149.     rect 16 424 50 50 
  150.           visible 1 
  151.           action { close mod ; open main }
  152.     mouseEnter { hide back ; show back_alt ; fadein message_back }
  153.         }
  154.  
  155. itemDef {
  156.           name back_alt
  157.           style WINDOW_STYLE_SHADER
  158.     background "ui/assets/backarrow_alt.tga"
  159.     rect 14 422 54 54 
  160.           backcolor 0 0 0 0
  161.           forecolor 1 1 1 1
  162.           visible 0
  163.     type ITEM_TYPE_BUTTON
  164.           mouseExit { hide back_alt ; show back ; fadeout message_back }      
  165.           //action { play "sound/misc/tim_pump.wav" ; close mod ; open main }      
  166.           action { close mod ; open main }      
  167.     }
  168.  
  169.  
  170. //    COMMENTED OUT FOR DEMO ONLY //
  171.  
  172. /*
  173.  
  174. itemDef {
  175.           name accept
  176.           style 3    
  177.          rect 574 424 50 50 
  178.          background "ui/assets/forwardarrow.tga"
  179.           backcolor 0 0 0 0
  180.           forecolor 1 1 1 1
  181.           visible 1 
  182.     mouseEnter { show lightning ; hide accept ; show accept_alt ; show message_accept ; playlooped "sound/misc/loop_electricity_05.wav" }
  183.           action { close mod ; uiScript SinglePlayerStart }
  184.       }
  185.  
  186. itemDef {
  187.           name accept_alt
  188.           style 3    
  189.          rect 572 422 54 54 
  190.          background "ui/assets/forwardarrow_alt.tga"
  191.           backcolor 0 0 0 0
  192.           forecolor 1 1 1 1
  193.           visible 0
  194.     type ITEM_TYPE_BUTTON   
  195.           action { close mod ; uiScript SinglePlayerStart }
  196.           mouseExit { hide lightning ; hide accept_alt ; show accept ; hide message_accept ; playlooped "music/fla_mp03.wav" }     
  197.   }
  198. */
  199.  
  200.  itemDef {
  201.           name lightning
  202.           style 3
  203.     background lightningkc
  204.           rect 46 385 250 128     
  205.           visible 0 
  206.           decoration 
  207.         }
  208. itemDef {
  209.           name lightning
  210.           style 3
  211.     background lightningkc
  212.           rect 341 385 250 128     
  213.           visible 0 
  214.           decoration 
  215.         }
  216.  
  217.  
  218.  
  219. //    MESSAGES    //
  220.  
  221. itemDef {
  222.     name message_back
  223.     style 0 
  224.     rect 320 430 128 30
  225.     textstyle 1
  226.     textalign 1
  227.     textalignx 0
  228.     textaligny 25
  229.     textscale .416
  230.     text "Exit to Main Menu"
  231.     forecolor 1 1 1 1
  232.     decoration 
  233.     visible 0
  234.     }
  235.  
  236. itemDef {
  237.     name message_accept
  238.     style 0 
  239.     rect 320 430 128 30
  240.     textalign 1
  241.     textstyle 1
  242.     textalignx 0
  243.     textaligny 25
  244.     textscale .416
  245.     text "Play Mod"
  246.     forecolor 1 1 1 1
  247.     decoration 
  248.     visible 0
  249.     }
  250. itemDef {
  251.     name message_mod
  252.     style 0 
  253.     rect 320 430 128 30
  254.     textalign 1
  255.     textstyle 1
  256.     textalignx 0
  257.     textaligny 25
  258.     textscale .416
  259.     text "Select Mod Name to Play"
  260.     forecolor 1 1 1 1
  261.     decoration 
  262.     visible 0
  263.     }
  264.  
  265.  
  266. itemDef {
  267.           name fadebox
  268.           style WINDOW_STYLE_FILLED
  269.      background "ui/assets/fadebox.tga"
  270.     forecolor 0 0 0 1
  271.     backcolor 0 0 0 1
  272.     rect 0 0 640 480
  273.           visible 1 
  274.     decoration
  275.         }
  276.  
  277.  
  278.  
  279.  
  280.  
  281.  
  282.  
  283. }
  284.  
  285.  
  286.  
  287.  
  288.  
  289.  
  290.  
  291.  
  292. }
  293.  
  294. }
  295. }